<?php

namespace app\admin\controller\csmwj;

use addons\csmwj\library\xcore\xcore\base\XcABackend;
use addons\csmwj\library\xcore\xcore\utils\XcRequestUtils;
use addons\csmwj\library\xcore\xcore\utils\XcAdminTabUtils;

/**
 * 工单
 *
 * @icon fa fa-circle-o
 */
class Paperiframe extends XcABackend
{

    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = new \app\admin\model\csmwj\Paper();
        // csmwj:设置页面tabs
        $id = XcRequestUtils::param("xc_tabid");
        XcAdminTabUtils::append_control_initialize('paper', $id, __CLASS__, $this->view);
    }

    public function formgenerate()
    {
        $url = XcRequestUtils::urlBase();
        $this->view->assign("adminurl_urlencode", urlencode($url));
        $this->view->assign("test", $this->request->param('test'));
        return $this->view->fetch();
    }

    //列表
    public function index()
    {
        return;
    }
    //添加
    public function add()
    {
        return;
    }
    //编辑
    public function edit($ids = null)
    {
        return;
    }
    //删除
    public function del($ids = null)
    {
        return;
    }
    //回收站列表
    public function recyclebin()
    {
        return;
    }
    //回收站(真实删除或清空)
    public function destroy($ids = null)
    {
        return;
    }
    //回收站还原
    public function restore($ids = null)
    {
        return;
    }
    //批量操作(修改状态)
    public function multi($ids = null)
    {
        return;
    }
}
